package com.bt7274.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 种子评论表
 * </p>
 *
 * @author hp
 * @since 2025-06-10
 */
@TableName("torrent_comment")
public class TorrentComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论ID（主键）
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 种子ID
     */
    private Long torrentId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 回复用户ID，可以为空
     */
    private String replyId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTorrentId() {
        return torrentId;
    }

    public void setTorrentId(Long torrentId) {
        this.torrentId = torrentId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getReplyId() {
        return replyId;
    }

    public void setReplyId(String replyId) {
        this.replyId = replyId;
    }

    @Override
    public String toString() {
        return "TorrentComment{" +
        "id = " + id +
        ", torrentId = " + torrentId +
        ", userId = " + userId +
        ", content = " + content +
        ", createdAt = " + createdAt +
        ", replyId = " + replyId +
        "}";
    }
}
